import json

obj = ['foo', {'bar': ('baz', None, 1.0, 2)}]
with open("json.txt","w+") as f:
    json.dump(obj,f)
    
with open("json.txt","r") as f:
    print(json.load(f))

